let ps=document.querySelectorAll(".register .login-box>p>span");
let sons=document.querySelectorAll(".register .login-box>div");
for(let i=0;i<ps.length;i++){
    console.log( ps[i]);
    ps[i].addEventListener("click",function(){
        for(let j=0;j<ps.length;j++){
            ps[j].classList.remove("active");
            sons[j].classList.remove("login-box-son")
        }
        ps[i].classList.add("active");
        sons[i].classList.add("login-box-son");
    })
}